<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IFWiki.Models.Article>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>IF Wiki: Edit: '<%= Html.Encode(Model.Name) %>'</title>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="menu" runat="server">
        <div id="menucontainer">
            <ul id="menu">              
                <li><%= Html.ActionLink("Main", "Index", "Article", new { name = Model.Name, innerType = Model.InnerType }, null)%></li>
                <li><a class="current">Source</a></li>                
<%    
    if (Html.ViewData.Model.IsDiscussion)  
    {
%>
                <li><%= Html.ActionLink("UnTalk", "UnTalk", "Article", new { name = Model.Name }, null)%></li>
<%
    }
    else
    {
%> 
                <li><%= Html.ActionLink("Talk", "Talk", "Article", new { name = Model.Name, innerType = Model.InnerType }, null)%></li>
<%
    }
%>
            </ul>
        </div>
   </div>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

            <div id="submenucontainer">
                <ul id="submenu">              
                <li><%= Html.ActionLink("Source", "ViewSource", "Article", new { name = Model.Name }, null)%></li>
                <li><a class="current">Edit</a></li>                                                
                <li><%= Html.ActionLink("History", "ListRevisions", "Article", new { name = Model.Name }, null)%></li>
                </ul>
            </div>


<!-- Sidebar based on: http://daringfireball.net/projects/markdown/dingus  
-->

<div id="sidebar" style="float:right">

<h3>Syntax Cheatsheet:</h3>
<pre><code>*italic*   **bold**
_italic_   __bold__
</code></pre>

<pre><code>Link [example](http://url.com/ "Title")
</code></pre>

<pre><code>![alt text](/path/img.jpg "Title")
</code></pre>

<pre><code>Header 1
========

Header 2
--------</code></pre>

<pre><code># Header 1 #

## Header 2 ##

###### Header 6
</code></pre>

<pre><code>1.  Ordered list
2.  without paragraps
</code></pre>

<pre><code>*   Unordered list

    With inner paragraphs.

*   Nested:
    * List and also
*   Nested: 
    1.  numbered 
    2.  list
        * etc.</code></pre>

<pre><code>&gt; Use angle brackets for blockquotes.</code>

<pre><code>delimit `code spans' with backticks.

or literal backticks like `` `this` ``.
</code></pre>

<pre><code>    Indented by 4 spaces or 1 tab 
    provides a code block.
</code></pre>

<pre><code>--- (horizontal rule)
* * * (horizontal rule)</code></pre><br />
<%= Html.ActionLink("(formatting help)", "Index", "Article", new { name = "Help:Markdown" }, new { target = "blank"})%>
</div> <!-- sidebar -->
<h2>Edit: '<%= Html.Encode(Model.Name) %>'</h2>
    <%= Html.ValidationSummary() %>
    <% using (Html.BeginForm()) {%>

            <p>
                <%= Html.TextArea("Detail", new { rows = 33, style="width:64%" })%>
                <%= Html.ValidationMessage("Detail", "*") %><br />
            </p>
            <p>
                <label for="Reason">Edit Reason</label><br />
                <%= Html.TextBox("Reason")%>
                <%= Html.ValidationMessage("Reason", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
                                &nbsp; &nbsp; <small><%= Html.ActionLink("Cancel", "ViewSource", "Article", new { name = Model.Name }, null)%></small>
            </p>
    <% } %>
</asp:Content>



